package com.hp.siminterface.webservice.impl;

import java.util.List;

import com.hp.siminterface.domain.CellularSystemsComplex;
import com.hp.siminterface.persistence.CellularSystemsComplexMapper;
import com.hp.siminterface.webservice.CellularSystemsComplexService;

public class CellularSystemsComplexServiceImpl implements
		CellularSystemsComplexService {
	private CellularSystemsComplexMapper cellularSystemsComplexMapper;

	@Override
	public CellularSystemsComplex[] getCellularSystemsComplexInfo() {
		List<CellularSystemsComplex> cellularSystemsComplexs = cellularSystemsComplexMapper
				.selectCellularSystemsComplex();
		CellularSystemsComplex[] cellularSystemsComplexsArray = new CellularSystemsComplex[cellularSystemsComplexs
				.size()];
		int i = 0;
		for (CellularSystemsComplex cellularSystemsComplex : cellularSystemsComplexs) {
			cellularSystemsComplexsArray[i] = cellularSystemsComplex;
			i++;
		}
		return cellularSystemsComplexsArray;
	}

	public void setCellularSystemsComplexMapper(
			CellularSystemsComplexMapper cellularSystemsComplexMapper) {
		this.cellularSystemsComplexMapper = cellularSystemsComplexMapper;
	}

}
